package org.wmq.skyserver.controller.user;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.wmq.skycommon.pojo.DTO.UserLoginDTO;
import org.wmq.skycommon.pojo.entity.Result;
import org.wmq.skycommon.pojo.entity.User;
import org.wmq.skyserver.service.UserService;

@RestController
@RequestMapping("/user/user")
@Api("C端用户相关接口")
public class UserController {
    @Autowired
    private UserService userService;

    @PostMapping("/login")
    @ApiOperation("微信登录")
    public Result login(@RequestBody UserLoginDTO userLoginDTO) {
        User user = this.userService.wxLogin(userLoginDTO);
        return null;
    }
}
